package com.dongan.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 支付表
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("s_pay")
public class Pay implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 支付ID
     */
    @TableField("PAY_ID")
    private String payId;

    /**
     * 仓库保管员
     */
    @TableField("STORER")
    private String storer;

    /**
     * 理由
     */
    @TableField("REASON")
    private String reason;

    /**
     * 确切原因
     */
    @TableField("REASONEXACT")
    private String reasonexact;

    /**
     * 金额
     */
    @TableField("AMOUNT_SUM")
    private BigDecimal amountSum;

    /**
     * 成本价格总和
     */
    @TableField("COST_PRICE_SUM")
    private BigDecimal costPriceSum;

    /**
     * 支付金额总和
     */
    @TableField("PAID_AMOUNT_SUM")
    private BigDecimal paidAmountSum;

    /**
     * 注意
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 登记人
     */
    @TableField("REGISTER")
    private String register;

    /**
     * 登记时间
     */
    @TableField("REGISTER_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date registerTime;

    /**
     * 检验员
     */
    @TableField("CHECKER")
    private String checker;

    /**
     * 检验时间
     */
    @TableField("CHECK_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date checkTime;

    /**
     * 检验标签
     */
    @TableField("CHECK_TAG")
    private String checkTag;

    /**
     * 调节
     */
    @TableField("ATTEMPER")
    private String attemper;

    /**
     * 调节时间
     */
    @TableField("ATTEMPER_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date attemperTime;

    /**
     * 支付标签
     */
    @TableField("PAY_TAG")
    private String payTag;

      @TableField(fill = FieldFill.INSERT)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableLogic
    private Integer deleted;


}
